<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Xists Admin Interface</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php use_stylesheet('admin.css') ?>
    <?php include_javascripts() ?>
    <?php include_stylesheets() ?>
  </head>
  <body>
    <div id="container">
      <div id="header">
        <h1>
          <a href="<?php echo url_for('@homepage') ?>">
            <img src="/images/logo.jpg" alt="Xists" />
          </a>
        </h1>
      </div>

	  <?php if ($sf_user->isAuthenticated()): ?>
      <div id="menu">
        <ul>
          <li><?php echo link_to('Users', '@xists_user') ?></li>
          <li><?php echo link_to('Cheque', '@xists_user_cheque') ?></li>
          <li><?php echo link_to('Returns', '@xists_returns') ?></li>
          <li><?php echo link_to('Referal', '@xists_referal_income') ?></li>
          <li><?php echo link_to('Matching', '@xists_matching_income') ?></li>
          <li><?php echo link_to('Total', '@xists_total_income') ?></li>
          <li><?php echo link_to('Plan', '@xists_plan') ?></li>
          <li><?php echo link_to('Countries', '@xists_country') ?></li>
		  <li><?php echo link_to('Admins', '@sf_guard_user') ?></li>
		  <li><?php echo link_to('Logout', '@sf_guard_signout') ?></li>
        </ul>
      </div>
	  <?php endif; ?>
 
      <div id="content">
        <?php echo $sf_content ?>
      </div>
 
      <div id="footer">
        powered by <a href="http://www.adeptworld.com/">
        <img src="/images/adept.jpg" height="50" alt="Adept Solution" /></a>
      </div>
    </div>
  </body>
</html>